var AdminPage = {
	
	// Variables for assignation process
	popup_id : 'form_popup_div',
	
	confirmAction: function(text) {
		var agree = confirm(text);
		if (agree) {  
			return true;
		} else {
			return false;
		}
	},
	showMask: function(el){
		el = $(el);
		if(!el || el.mask_element) return;
		var element_loader = $('<div class="itc-mask"><div class="loading-indicator"></div></div>');
		if ($.browser.msie && $.browser.version < 7) {
			var w = el.offsetWidth;
			element_loader.css({
				'height':h+'px',
				'width':w+'px'
			});
		}
		if (el.css('position') != 'relative') {
			el.css('position', 'relative');
		}
		element_loader.appendTo(el);
		return true;
	},
	
	hideMask: function(el) {
		$('.itc-mask').remove();
	},
	showPopup: function(){
		$('#'+this.popup_id).show();
	},
	hidePopup: function(){
		$('#'+this.popup_id).hide();
	}
};

$(document).ready(function() {  });